import request from '@/utils/aliyunRequest';

const mallProductCategoryApi = {};

mallProductCategoryApi.list = () => {
	return request({
		url: '/aliyun-api/mall-product-category/list',
		method: 'get',
	})
}
mallProductCategoryApi.add = (params) => {
	return request({
		url: '/aliyun-api/mall-product-category',
		method: 'post',
		data: params,
	})
}
mallProductCategoryApi.update = (params) => {
	return request({
		url: '/aliyun-api/mall-product-category',
		method: 'put',
		data: params,
	})
}
mallProductCategoryApi.get = (id) => {
	return request({
		url: '/aliyun-api/mall-product-category/' + id,
		method: 'get',
	})
}
mallProductCategoryApi.delete = (id) => {
	return request({
		url: '/aliyun-api/mall-product-category/' + id,
		method: 'delete',
	})
}

export default mallProductCategoryApi